/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.course.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 精品课程Entity
 * @author hang
 * @version 2017-01-14
 */
public class TbTalentCourse extends DataEntity<TbTalentCourse> {
	
	private static final long serialVersionUID = 1L;
	private String courseKind;		// 课程类别
	private String courseName;		// 课程名称
	private String courseTeacher;		// 主讲教师/课程负责人
	private String approvalYear;		// 批准年月
	private String remark;		// 备注
	private String material;		// 证明材料
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更改时间
	
	public TbTalentCourse() {
		super();
	}

	public TbTalentCourse(String id){
		super(id);
	}

	@Length(min=0, max=50, message="课程类别长度必须介于 0 和 50 之间")
	public String getCourseKind() {
		return courseKind;
	}

	public void setCourseKind(String courseKind) {
		this.courseKind = courseKind;
	}
	
	@Length(min=0, max=50, message="课程名称长度必须介于 0 和 50 之间")
	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	
	@Length(min=0, max=50, message="主讲教师/课程负责人长度必须介于 0 和 50 之间")
	public String getCourseTeacher() {
		return courseTeacher;
	}

	public void setCourseTeacher(String courseTeacher) {
		this.courseTeacher = courseTeacher;
	}
	
	@Length(min=0, max=50, message="批准年月长度必须介于 0 和 50 之间")
	public String getApprovalYear() {
		return approvalYear;
	}

	public void setApprovalYear(String approvalYear) {
		this.approvalYear = approvalYear;
	}
	
	@Length(min=0, max=200, message="备注长度必须介于 0 和 200 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=200, message="证明材料长度必须介于 0 和 200 之间")
	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}